<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        ul {
            list-style: none;
        }

        .navs {
            background: #333;
            height: 40px;
            padding: 0 200px;
        }

        .navs ul:first-child {
            float: left;
            height: 40px;
            line-height: 40px;
            font-size: 12px;
            color: #b0b0b0;
        }

        .navs ul:first-child li {
            float: left;
            padding: 0 5px;
        }

        .navs ul:last-child {
            float: right;
            height: 40px;
            line-height: 40px;
            font-size: 12px;
            color: #b0b0b0;
        }

        .navs ul:last-child li {
            float: left;
            padding: 0 5px;
        }
    </style>
</head>

<body>
    <div class="navs">
        <!-- 导航栏 -->
        <ul>
            <li>小米官网</li>
            <li>小米商城</li>
            <li>小米官网</li>
            <li>小米商城</li>
            <li>小米官网</li>
            <li>小米商城</li>
            <li>小米官网</li>
            <li>小米商城</li>
            <li>小米官网</li>
            <li>小米商城</li>
            <li>小米官网</li>
            <li>小米商城</li>
        </ul>
        <!-- 登录注册 -->
        <ul>
            <li>登录</li>
            <li>注册</li>
            <li>消息通知</li>
        </ul>
    </div>
</body>

</html>